#include "ota_http_curl.h"
#include "log.h"

int main(int argc, char const *argv[])
{	
    response_body_t *response_body=ota_http_curl_get_response(OTA_URL_FILEINFO);
	log_info("response_body->data:%s",response_body->data);

	int ret=ota_http_curl_download(OTA_URL_DOWNLOAD,OTA_LOCAL_FILE_PATH);
	if(ret==0)
	{
		log_info("download success");
	}
	else
	{
		log_info("download fail");
	}

	return 0;
}
